package com.dameng.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dameng.system.entity.SystemRole;
import com.dameng.system.mapper.SystemRoleMapper;
import com.dameng.system.service.SystemRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SystemRoleServiceImpl extends ServiceImpl<SystemRoleMapper, SystemRole> implements SystemRoleService {

    @Resource
    SystemRoleMapper systemRoleMapper;

    @Override
    public Page<SystemRole> getRolesByUserId(Page<SystemRole> page, String userid) {
        return systemRoleMapper.getRolesByUserId(page, userid);
    }
}
